{% comment %} ----------------------------------------------------------------*\
 |  live_search.html                                                          |
 |                                                                            |
 |  Copyright (c) 2009-2010, Code A La Mode, original authors.                |
 |                                                                            |
 |      This file is part of imi-imi.                                         |
 |                                                                            |
 |      imi-imi is free software; you can redistribute it and/or modify       |
 |      it under the terms of the GNU General Public License as published by  |
 |      the Free Software Foundation, either version 3 of the License, or     |
 |      (at your option) any later version.                                   |
 |                                                                            |
 |      imi-imi is distributed in the hope that it will be useful,            |
 |      but WITHOUT ANY WARRANTY; without even the implied warranty of        |
 |      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         |
 |      GNU General Public License for more details.                          |
 |                                                                            |
 |      You should have received a copy of the GNU General Public License     |
 |      along with imi-imi.  If not, see <http://www.gnu.org/licenses/>.      |
\*------------------------------------------------------------- {% endcomment %}


{% if suggestions %}
    <ul>
        {% for suggestion in suggestions %}
            <li>

                {% if suggestion.has_results %}
                    <b>
                {% endif %}
                {% if not suggestion.has_results %}
                    <small>
                {% endif %}

                    <a id="live_search_result_{{ forloop.counter0 }}"
                       href="{{ suggestion.url }}">{{ suggestion.text }}</a>

                {% if suggestion.has_results %}
                    </b>
                {% endif %}
                {% if not suggestion.has_results %}
                    </small>
                {% endif %}

            </li>
        {% endfor %}
    </ul>
{% endif %}
